package org.newlucene.core.search;

import java.util.HashMap;
import java.util.Map;

public class Query
{
	private String defaultQuery;
	
	private Map<String, String> fieldQueryMap = new HashMap<String, String>();

	private String originalQuery;
	
	public void setOriginalQuery(String originalQuery)
	{
		this.originalQuery = originalQuery;
	}
	
	public void addFieldQuery(String fieldName, String query)
	{
		fieldQueryMap.put(fieldName, query);
	}
	
	public void setDefaultQuery(String query)
	{
		this.defaultQuery = query;
	}
	
	public Map<String, String> getFieldQueryMap()
	{
		return fieldQueryMap;
	}
	
	public String getDefaultQuery()
	{
		return this.defaultQuery;
	}
	
	public String getOriginalQuery()
	{
		return this.originalQuery;
	}
}
